package com.atguigu.gmall.search.dao;

import com.atguigu.gmall.search.entity.Movie;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author lfy
 * @Description 操作Movie
 * @create 2023-07-22 14:56
 */
@Repository
public interface MovieRepository extends PagingAndSortingRepository<Movie,Long> {


    //https://docs.spring.io/spring-data/elasticsearch/docs/4.4.14/reference/html/#elasticsearch.query-methods

    List<Movie> getMovieByDaoyanIsAndUpTimeBefore(String daoyan, Date upTime);


}
